package com.szrt.java.day20161226.demo05;

public class TriDemo {

	public static void main(String[] args) {
		
		/*for(int outer=1;outer<=5;outer++){
			//1 先打星星
			for(int inner=1;inner<=outer;inner++){
				System.out.print("*");
			}
			//2在打回车
			System.out.println();
		}*/
		
		printStar(5);
		
	}
	
	public static void printStar(int counter){
		for(int i=1;i<=counter;i++){
			for(int j=1;j<=i;j++){
				System.out.print("*");
			}
			System.out.println();
		}
	}
	
	
}
